﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ross.EntityFramework.Model
{
    [Table("Signs")]
    public class Signs : IEntity<long>
    {
        public long ID { get; set; }

        public long CourseID { get; set; }
        /// <summary>
        /// 报名时间
        /// </summary>
        [Required]
        public DateTime SignTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 用户ID
        /// </summary>
        [StringLength(20)]
        public string UserID { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 课程标题
        /// </summary>
        [Required]
        [StringLength(50)]
        public string CourseTitle { get; set; }
        /// <summary>
        /// 是否完成
        /// </summary>
        public bool IsOver { get; set; }

    }
}
